home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
dev
/
misc
/
Hunk.lha
/
Hunk
/
Hoppers
/
Asl_Add.hop
< prev
next >
Wrap
Text File
|
1998-02-14
|
2KB
|
88 lines
;*************************************************************************
;** General Optimizer PC Absolute to Relative **
;** Contributor: Jess Jan 30th 1998 **
;** Replace asl.l #1, by add , **
;*************************************************************************
;*************************************************************************
;
; lsl.b #$1,Dx -> add.b Dx,Dx
;
#match
#code
%1110001100000XXX =# SourceReg ;LSL.B #$1,Dx
;
;
#replace
%1101XXX000000XXX =# SourceReg |< 9 ;ADD.B Dx,Dx
#end
;*************************************************************************
;
; asl.b #$1,Dx -> add.b Dx,Dx
;
#match
#code
%1110001100001XXX =# SourceReg ;ASL.B #$1,Dx
;
;
#replace
%1101XXX000000XXX =# SourceReg |< 9 ;ADD.B Dx,Dx
#end
;*************************************************************************
;
; lsl.w #$1,Dx -> add.w Dx,Dx
;
#match
#code
%1110001101000XXX =# SourceReg ;LSL.W #$1,Dx
;
;
#replace
%1101XXX001000XXX =# SourceReg |< 9 ;ADD.W Dx,Dx
#end
;*************************************************************************
;
; asl.w #$1,Dx -> add.b Dx,Dx
;
#match
#code
%1110001101001XXX =# SourceReg ;ASL.W #$1,Dx
;
;
#replace
%1101XXX001000XXX =# SourceReg |< 9 ;ADD.W Dx,Dx
#end
;*************************************************************************
;
; lsl.l #$1,Dx -> add.l Dx,Dx
;
#match
#code
%1110001110000XXX =# SourceReg ;LSL.L #$1,Dx
;
;
#replace
%1101XXX010000XXX =# SourceReg |< 9 ;ADD.L Dx,Dx
#end
;*************************************************************************
;
; asl.l #$1,Dx -> add.l Dx,Dx
;
#match
#code
%1110001110001XXX =# SourceReg ;ASL.L #$1,Dx
;
;
#replace
%1101XXX010000XXX =# SourceReg |< 9 ;ADD.L Dx,Dx
#end